<?php $post = $self->getPost() ?>
<div class="post-view">
	<script type="text/javascript">
	//<![CDATA[
		window.postId = <?php echo $post->getId() ?>;
		window.updateUrl = '<?php echo App::url('*/update') ?>';
	//]]>
	</script>

	<div class="post-heading">
		<p class="post-date">
			<?php $time = strtotime($post->getUpdateTime()); ?>
			<strong><?php echo date('d', $time) ?></strong>
			<em><?php echo date('F', $time) ?></em>&nbsp;-&nbsp;<span><?php echo date('Y', $time) ?></span>
		</p>
		<h1 class="post-title"><?php echo $post->getTitle() ?></h1>
	</div>

	<div class="post-additional">
		<?php $self->renderChild('post_view_rating') ?>
		<?php $self->renderChild('post_view_status') ?>
		<a href="<?php echo App::url('admin/post/edit/id/'.$post->getId()) ?>" target="_blank" style="text-decoration: none"><i class="icon-edit"></i>&nbsp;</a>
	</div>

	<p class="post-desc"><?php echo nl2br($post->getDescription()); ?></p>

	<div class="post-content"><?php echo $post->getContent() ?></div>

	<?php $self->renderChild('post_view_tag') ?>
</div>